/**
 * Created with IntelliJ IDEA.
 * User: skyline{http://my.oschina.net/skyline520}
 * Date: 12-11-20
 * Time: 下午12:00
 * To change this template use File | Settings | File Templates.
 */
Ext.define('Airways.view.system.operation.PopUpWindow',{
    extend:'Ext.window.Window',
    alias:'widget.popUpWindow',
    title: '编辑菜单',
    iconCls:'edit',
    height: 350,
    width: 600,
    constrain:true,   //这个属性很牛逼啊，可以把window 限制在容器范围内
    closeAction:'hide',
    modal:true,
//    animateTarget:leftPanel,
    buttonAlign:'center',
    buttons:[{
        name:'saveButton',
        text:'保存',
        iconCls:'savebutton'
        },{
        name:'cancelButton',
        text:'取消',
        iconCls:'cancelbutton'
    }],
    initComponent:function (){
        this.items = this.buildItems();
        this.callParent(arguments);
    },
    buildItems:function (){
        var popUpPanel = Ext.create('Airways.view.system.operation.PopUpPanel');
        return [popUpPanel];
    }
});
